package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 奖励说明表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Award extends Model<Award> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 人员id
     */
    private String staffId;

    /**
     * 门店奖励区说明
     */
    private String content;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 0-禁用 1-启用 
     */
    private Integer status;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 0-门店 1-俱乐部
     */
    private Integer type;

    /**
     * 默认内容
     */
    private String defaultContent;


    public static final String ID = "id";

    public static final String STAFF_ID = "staff_id";

    public static final String CONTENT = "content";

    public static final String CREATE_TIME = "create_time";

    public static final String STATUS = "status";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String TYPE = "type";

    public static final String DEFAULT_CONTENT = "default_content";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
